class_name ComboViewTypeItem
extends Resource

#region 属性
@export var type_name:String
@export var display_name:String
@export var can_multi_select:bool = false
@export var valid_game_modes:Array[GameEnum.GameMode]
@export var valid_game_states:Array[GameEnum.GameState]
var combo_view:ComboView
#endregion
#region 字段
#endregion
#region 信号
#endregion

#region 基类方法
#endregion
#region 公共方法
func excute(combo_view:ComboView):
	self.combo_view = combo_view
func cancel():
	pass
func check_game_mode(args:Dictionary) -> bool:
	if not args.has("GameMode"):
		return valid_game_modes.any(func (x):return x == GameManager.game_mode)
	return valid_game_modes.any(func (x):return x == args["GameMode"])
func check_game_state(args:Dictionary) -> bool:
	if not args.has("GameState"):
		return valid_game_states.any(func (x):return x == GameManager.get_cur_game_state())
	return valid_game_states.any(func (x):return x == args["GameState"])
#endregion
#region 私有方法
#endregion
#region 生命周期函数
#endregion
